//
//  XZHMovieTableViewCell.m
//  Piece
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "XZHMovieTableViewCell.h"

@implementation XZHMovieTableViewCell
-(void)setModel:(XZHIllustrationModel *)model
{
    if (_model != model) {
        _model = model;
        
        //self.movieLabel.text = model.title;
        NSMutableAttributedString *attributeString = [[NSMutableAttributedString alloc] initWithString:model.title];
        
        NSRange range = [model.title rangeOfString:self.strKey];
        [attributeString setAttributes:[NSMutableDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], NSForegroundColorAttributeName, nil] range:range];
        self.movieLabel.attributedText = attributeString;

    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
